# -*- coding: utf-8 -*-
# @version : 1.0
# @File    : role.py
# @Date    : 2024/9/30 09:58
# @Author  : GlenZhao
# @Desc    :
from pydantic import BaseModel, ConfigDict

from db.base import BaseSchemas


class Role(BaseModel):
    name: str
    order: int | None = None
    role_key: str


class RoleSimpleOut(Role, BaseSchemas):
    model_config = ConfigDict(from_attributes=True)